namespace VAdvantage.Model
{

/** Generated Model - DO NOT CHANGE */
using System;
using System.Text;
using VAdvantage.DataBase;
using VAdvantage.Common;
using VAdvantage.Classes;
using VAdvantage.Process;
using VAdvantage.Model;
using VAdvantage.Utility;
using System.Data;
/** Generated Model for VSS_Circuit
 *  @author Jagmohan Bhatt (generated) 
 *  @version Vienna Framework 1.1.1 - $Id$ */
public class X_VSS_Circuit : PO
{
public X_VSS_Circuit (Context ctx, int VSS_Circuit_ID, String trxName) : base (ctx, VSS_Circuit_ID, trxName)
{
/** if (VSS_Circuit_ID == 0)
{
SetVSS_Circuit_ID (0);
}
 */
}
public X_VSS_Circuit (Ctx ctx, int VSS_Circuit_ID, String trxName) : base (ctx, VSS_Circuit_ID, trxName)
{
/** if (VSS_Circuit_ID == 0)
{
SetVSS_Circuit_ID (0);
}
 */
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_VSS_Circuit (Context ctx, DataRow rs, String trxName) : base(ctx, rs, trxName)
{
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_VSS_Circuit (Ctx ctx, DataRow rs, String trxName) : base(ctx, rs, trxName)
{
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_VSS_Circuit (Ctx ctx, IDataReader dr, String trxName) : base(ctx, dr, trxName)
{
}
/** Static Constructor 
 Set Table ID By Table Name
 added by ->Harwinder */
static X_VSS_Circuit()
{
 Table_ID = Get_Table_ID(Table_Name);
 model = new KeyNamePair(Table_ID,Table_Name);
}
/** Serial Version No */
static long serialVersionUID = 27602617034088L;
/** Last Updated Timestamp 11/5/2011 4:45:17 PM */
public static long updatedMS = 1320491717299L;
/** AD_Table_ID=1000095 */
public static int Table_ID;
 // =1000095;

/** TableName=VSS_Circuit */
public static String Table_Name="VSS_Circuit";

protected static KeyNamePair model;
protected Decimal accessLevel = new Decimal(3);
/** AccessLevel
@return 3 - Client - Org 
*/
protected override int Get_AccessLevel()
{
return Convert.ToInt32(accessLevel.ToString());
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected override POInfo InitPO (Context ctx)
{
POInfo poi = POInfo.GetPOInfo (ctx, Table_ID);
return poi;
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected override POInfo InitPO (Ctx ctx)
{
POInfo poi = POInfo.GetPOInfo (ctx, Table_ID);
return poi;
}
/** Info
@return info
*/
public override String ToString()
{
StringBuilder sb = new StringBuilder ("X_VSS_Circuit[").Append(Get_ID()).Append("]");
return sb.ToString();
}
/** Set Description.
@param Description Optional short description of the record */
public void SetDescription (String Description)
{
if (Description != null && Description.Length > 50)
{
log.Warning("Length > 50 - truncated");
Description = Description.Substring(0,50);
}
Set_Value ("Description", Description);
}
/** Get Description.
@return Optional short description of the record */
public String GetDescription() 
{
return (String)Get_Value("Description");
}
/** Set Name .
@param Name Alphanumeric identifier of the entity */
public void SetName (String Name)
{
if (Name != null && Name.Length > 50)
{
log.Warning("Length > 50 - truncated");
Name = Name.Substring(0,50);
}
Set_Value ("Name", Name);
}
/** Get Name .
@return Alphanumeric identifier of the entity */
public String GetName() 
{
return (String)Get_Value("Name");
}
/** Set VSS_Circuit_ID.
@param VSS_Circuit_ID VSS_Circuit_ID */
public void SetVSS_Circuit_ID (int VSS_Circuit_ID)
{
if (VSS_Circuit_ID < 1) throw new ArgumentException ("VSS_Circuit_ID is mandatory.");
Set_ValueNoCheck ("VSS_Circuit_ID", VSS_Circuit_ID);
}
/** Get VSS_Circuit_ID.
@return VSS_Circuit_ID */
public int GetVSS_Circuit_ID() 
{
Object ii = Get_Value("VSS_Circuit_ID");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
/** Set Search Key.
@param Value Search key for the record in the format required - must be unique */
public void SetValue (String Value)
{
if (Value != null && Value.Length > 50)
{
log.Warning("Length > 50 - truncated");
Value = Value.Substring(0,50);
}
Set_Value ("Value", Value);
}
/** Get Search Key.
@return Search key for the record in the format required - must be unique */
public String GetValue() 
{
return (String)Get_Value("Value");
}
/** Set Warranty.
@param Warranty Warranty */
public void SetWarranty (int Warranty)
{
Set_Value ("Warranty", Warranty);
}
/** Get Warranty.
@return Warranty */
public int GetWarranty() 
{
Object ii = Get_Value("Warranty");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
}

}
